package org.springframework.boot.autoconfigure.netty.support;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;

/**
 * Author: huoxingzhi
 * Date: 2021/1/6
 * Email: hxz_798561819@163.com
 */
public class Authentication {

    private String refreshToken;

    private Set<String> roles = new HashSet<>();

    private Set<String> permissions = new HashSet<>();

    public Authentication(){
        this.roles.add("ROLE_ANONYMOUS");
        this.permissions.add("ANONYMOUS");
    }

    public String getRefreshToken() {
        return refreshToken;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }

    public Set<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<String> permissions) {
        this.permissions = permissions;
    }
}
